package com.sc.study.clazz.domain;

import com.sc.common.core.domain.entity.SysUser;
import com.sc.study.foundation.domain.ScSubject;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.sc.common.annotation.Excel;
import com.sc.common.core.domain.BaseEntity;

/**
 * 班级科目授权老师对象 sc_clazz_subject_teacher
 *
 * @author sc
 * @date 2022-02-27
 */
public class ScClazzSubjectTeacher extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    private Long id;

    /**
     * 班级科目编号
     */
    @Excel(name = "班级科目编号")
    private Long clazzsubid;

    /**
     * 用户编号
     */
    @Excel(name = "用户编号")
    private Long userid;

    /**
     * 老师授课总时长
     */
    @Excel(name = "老师授课总时长")
    private Long subtimelong;

    /**
     * 开始授课时间，第一次排课决定
     */
    @Excel(name = "开始授课时间，第一次排课决定")
    private String starttime;

    /**
     * 手动停止或者排到最后一次课
     */
    @Excel(name = "手动停止或者排到最后一次课")
    private String endtime;

    /**
     * 班级
     */
    private ScClazz scClazz;

    /**
     * 科目
     */
    private ScSubject scSubject;

    /**
     * 老师
     */
    private SysUser sysUser;

    /** 班级编号*/
    private Long clazzId;

    /** 科目编号*/
    private Long subId;

    public Long getClazzId() {
        return clazzId;
    }

    public void setClazzId(Long clazzId) {
        this.clazzId = clazzId;
    }

    public Long getSubId() {
        return subId;
    }

    public void setSubId(Long subId) {
        this.subId = subId;
    }

    public ScClazz getScClazz() {
        return scClazz;
    }

    public void setScClazz(ScClazz scClazz) {
        this.scClazz = scClazz;
    }

    public ScSubject getScSubject() {
        return scSubject;
    }

    public void setScSubject(ScSubject scSubject) {
        this.scSubject = scSubject;
    }

    public SysUser getSysUser() {
        return sysUser;
    }

    public void setSysUser(SysUser sysUser) {
        this.sysUser = sysUser;
    }

    public ScClazzSubjectTeacher() {
    }

    public ScClazzSubjectTeacher(Long clazzsubid, Long userid, Long subtimelong) {
        this.clazzsubid = clazzsubid;
        this.userid = userid;
        this.subtimelong = subtimelong;
    }

    public ScClazzSubjectTeacher(Long clazzsubid, Long userid, Long subtimelong, String starttime) {
        this.clazzsubid = clazzsubid;
        this.userid = userid;
        this.subtimelong = subtimelong;
        this.starttime = starttime;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setClazzsubid(Long clazzsubid) {
        this.clazzsubid = clazzsubid;
    }

    public Long getClazzsubid() {
        return clazzsubid;
    }

    public void setUserid(Long userid) {
        this.userid = userid;
    }

    public Long getUserid() {
        return userid;
    }

    public void setSubtimelong(Long subtimelong) {
        this.subtimelong = subtimelong;
    }

    public Long getSubtimelong() {
        return subtimelong;
    }

    public void setStarttime(String starttime) {
        this.starttime = starttime;
    }

    public String getStarttime() {
        return starttime;
    }

    public void setEndtime(String endtime) {
        this.endtime = endtime;
    }

    public String getEndtime() {
        return endtime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("clazzsubid", getClazzsubid())
                .append("userid", getUserid())
                .append("subtimelong", getSubtimelong())
                .append("starttime", getStarttime())
                .append("endtime", getEndtime())
                .toString();
    }
}
